﻿namespace Services;


public class OrderServices : BaseServices
{
    private readonly ISqlSugarClient db;

    public OrderServices(ISqlSugarClient db)
    {
        this.db = db;
    }

    public async Task<object> GetOrder(string orderno)
    {
        var order = await db.Queryable<Entity.Order>().Where(x=>x.OrderNo == orderno).FirstAsync();

        return Ok(order);
    }
}